const dotenv = require('dotenv')
const fs = require('fs')

dotenv.config()
// 私钥公钥
const PRIVATE_KEY = fs.readFileSync("./src/app/keys/private.key")
const PUBLIC_KEY = fs.readFileSync("./src/app/keys/public.key")

const {
  APP_PORT,
  MYSQL_HOST,
  MYSQL_PORT,
  MYSQL_DATABASE,
  MYSQL_USER,
  MYSQL_PASSWORD,
  MYSQL_CONNECTIONLIMIT
} = process.env

module.exports = {
  APP_PORT,
  MYSQL_HOST,
  MYSQL_PORT,
  MYSQL_DATABASE,
  MYSQL_USER,
  MYSQL_PASSWORD,
  MYSQL_CONNECTIONLIMIT,

  PRIVATE_KEY,
  PUBLIC_KEY
}